import request from '@/utils/request'


export function list(query) {
  return request({
    url: '/buy/buy0002/list',
    method: 'get',
    params: query
  })
}

export function save(data) {
  return request({
    url: '/buy/buy0002/save',
    method: 'post',
    data: data
  })
}


export function view(data) {
  return request({
    url: '/buy/buy0002/view',
    method: 'post',
    data: data
  })
}

export function exportXJ(data) {
  return request({
    url: '/buy/buy0002/export',
    method: 'post',
    data: data
  })
}

export function selectSpaPriceByCondition(data) {
  return request({
    url: '/buy/buy0002/selectSpaPriceByCondition',
    method: 'post',
    data: data
  })
}

export function importData(data) {
  return request({
    url: '/buy/buy0002/importData',
    method: 'post',
    data: data
  })
}

export function exportData(data) {
  return request({
    url: '/buy/buy0002/exportData/' + data,
    method: 'get'
  })
}

export function importDataXJD(data) {
  return request({
    url: '/buy/buy0002/importDataXJD',
    method: 'post',
    data: data
  })
}

export function getSuggests(data) {
  return request({
    url: '/buy/buy0002/getSuggests',
    method: 'post',
    data: data
  })
}

export function saveSuggestDialog(data) {
  return request({
    url: '/buy/buy0002/saveSuggestDialog',
    method: 'post',
    data: data
  })
}

export function deleteSuggestDialog(data) {
  return request({
    url: '/buy/buy0002/deleteSuggestDialog',
    method: 'post',
    data: data
  })
}

